﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ISettingsProviderFactory.cs" company="DevDigital">
//   DevDigital
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace Settings.NET
{
    /// <summary>
    /// Settings provider factory    
    /// </summary>
    public interface ISettingsProviderFactory
    {
        /// <summary>
        /// Starts a settings provider configuration with the specified default storage.
        /// </summary>
        /// <typeparam name="TStorage">The type of the storage.</typeparam>
        /// <returns>The settings provider configuration</returns>
        ISettingsProviderConfiguration ConfigureSettingsProvider<TStorage>() where TStorage : ISettingsStorage, new();

        /// <summary>
        /// Starts a settings provider configuration with the specified default storage.
        /// </summary>
        /// <param name="storage">The default settings storage to configure.</param>
        /// <returns>
        /// The settings provider configuration
        /// </returns>
        ISettingsProviderConfiguration ConfigureSettingsProvider(ISettingsStorage storage);
    }
}